{% load static %}

{% block content %}
    <div class = "container">
        <div class = "row">
            <div class = "col-md-12">
                <div class = "card">
                    <div class = "card-header text-center">
                        <h4>工序表</h4>
                    </div>
                    <div class = "card-body">
                        <table class = "table table-bordered table-hover text-center">
                            <thead class = "thead-light">
                                <tr>
                                    <th scope = "col">#</th>
                                    <th scope = "col">工序</th>
                                    <th scope = "col">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                {% for p in processes %}
                                    <tr>
                                        <td>{{ forloop.counter }}</td>
                                        <td>{{ p.name }}</td>
                                        <td>
                                            <a href = "{% url 'view_subprocess' p.id %}" class = "btn btn-sm btn-info">
                                                详情
                                            </a>
                                        </td>
                                    </tr>
                                {% endfor %}

                            </tbody>
                        </table>
                    </div>
                </div>

            </div>
        </div>

    </div>



{% endblock %}